package com.hc.ureport;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@Slf4j
public class HcUReportApplication implements CommandLineRunner, DisposableBean {

    public static void main(String[] args) {
        SpringApplication.run(HcUReportApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        String msg = "UReport api service running";
        log.info(msg);
    }

    @Override
    public void destroy() throws Exception {
        String msg = "UReport api service destroy!";
        log.warn(msg);
    }
}
